// $Revision: 1.1 $
using System;
using System.Reflection;



namespace TimeSheetDAL
{
//	[AttributeUsage(AttributeTargets.Class |
//		 AttributeTargets.Constructor |
//		 AttributeTargets.Field |
//		 AttributeTargets.Method |
//		 AttributeTargets.Property,
//		 AllowMultiple = true)]

	[AttributeUsage(AttributeTargets.Class, 
		 AllowMultiple = true)]

	/// <summary>
	/// Summary description for PColumnAttribute.
	/// </summary>
	public class ColumnAttribute:System.Attribute
	{

		private string column;
		private string propertyName;

		public ColumnAttribute(string column, string property)
		{
			this.column = column;
			this.propertyName = property;
		}

		//the name of the database column
		public string Column {
			get {
				return this.column;
			}
		}
		//the name of the property
		public string Property {
			get {
				return this.propertyName;
			}
		}

	}//class
}//namespace
